<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>hello</title>
</head>
<body>
  <h1>
    hello，大家好 <br>
    <span th:text="${msg.toUpperCase().toLowerCase()}" ></span>
  </h1>

<ul>
  <li th:each="name : ${list}" >
    <span th:text="${name}"></span>
    <span th:if="${name.length() >= 8}">你很长</span>
    <span th:if="${name.length() < 8}">你很短</span>
  </li>

  <h1>
    <span th:text="${#dates.format(#dates.createNow(), 'yyyy-MM-dd HH:mm:ss')}"></span>
  </h1>
</ul>
</body>
</html>